home *** CD-ROM | disk | FTP | other *** search
-
- // JavaScript wrapper for r3filer.h
- // Auto generated file, do not modify by hand
- // Copyright ⌐ 2004, Realsoft Graphics Oy
-
- var R3_FILER_H = 1;
- include("oops/r3root.js")
-
-
- var R3CLID_FILER = 98;
-
-
-
-
- // Description: Ask filer to save project
- // Returns: Boolean, TRUE if succeeded
- // p3: Tag[], R3FIRA_FileName, R3FIRA_Sections, R3FIRA_Format
-
- R3FIRM_SAVEAS = 98000;
-
- function mR3FIRM_SAVEAS(p3) {
- return Do(this.r3obj, 98000, p3, R3TID_TAG, R3TNF_ARRAY);
- }
-
- // Description: Saves project with the default project name. The default name can be set using
- // the R3FIRA_FileName tag.
- // Returns: Boolean, TRUE if succeeded
-
- R3FIRM_SAVE = 98001;
-
- function mR3FIRM_SAVE() {
- return DoA(this.r3obj, 98001, 0, R3TID_INTEGER, 0);
- }
-
- // Description: Loads project. Sections, filename and replace information must * be given in the tag list.
- // Returns: Boolean, TRUE if succeeded
- // p3: Tag[], R3FIRA_FileName, R3FIRA_Sections, R3FIRA_Replace.
-
- R3FIRM_LOAD = 98002;
-
- function mR3FIRM_LOAD(p3) {
- return Do(this.r3obj, 98002, p3, R3TID_TAG, R3TNF_ARRAY);
- }
-
-
- R3FIRCM_REGISTERSAVER = 98005;
-
- function mR3FIRCM_REGISTERSAVER() {
- DoA(this.r3obj, 98005, 0, R3TID_INTEGER, 0);
- }
-
-
- R3FIRCM_REGISTERLOADER = 98006;
-
- function mR3FIRCM_REGISTERLOADER() {
- DoA(this.r3obj, 98006, 0, R3TID_INTEGER, 0);
- }
-
- // Description: Fetch 'section bit' corresponding the given chunk id
- // Returns: Integer, ordnum of the bit, bit can be generated as 1<<bit
- // p3: Integer, chunk id (created with R3MakeID()
-
- R3FIRM_FETCHSECTIONBIT = 98009;
-
- function mR3FIRM_FETCHSECTIONBIT(p3) {
- return DoA(this.r3obj, 98009, p3, R3TID_INTEGER, 0);
- }
-
-
- R3FIRCM_REGISTEREXTERNALFILE = 98010;
-
- function mR3FIRCM_REGISTEREXTERNALFILE() {
- DoA(this.r3obj, 98010, 0, R3TID_INTEGER, 0);
- }
-
- // Description: Open file format for reading. No actual data is read.
- // Returns: Object, file format object
- // p3: Tag[], R3FIRA_FileName
-
- R3FIRM_OPENFORMAT = 98012;
-
- function mR3FIRM_OPENFORMAT(p3) {
- return R3ToJS( Do(this.r3obj, 98012, p3, R3TID_TAG, R3TNF_ARRAY));
- }
-
- // Description: Save the current project as autosave file
- // Returns: Boolean, true if succeeded, FALSE for error.
-
- R3FIRM_AUTOSAVE = 98013;
-
- function mR3FIRM_AUTOSAVE() {
- return DoA(this.r3obj, 98013, 0, R3TID_INTEGER, 0);
- }
-
- // Description: Check if autosave file for given file name is newer
- // Returns: Boolean, true if autosave file is newer. FALSE if autosave file is older or it
- // doesn't exist.
- // p3: String, filename
-
- R3FIRM_ISAUTOSAVENEWER = 98014;
-
- function mR3FIRM_ISAUTOSAVENEWER(p3) {
- return DoA(this.r3obj, 98014, p3, R3TID_STRING, 0);
- }
-
- // Description: Make autosave file name
- // p1: Integer, auto save name
- // p3: Integer, base name
-
- R3FIRM_MAKEAUTOSAVENAME = 98015;
-
- function mR3FIRM_MAKEAUTOSAVENAME(p1, p3) {
- DoA2(this.r3obj, 98015, p1, R3TID_BYTE, 0, p3, R3TID_BYTE, 0);
- }
-
- // Description: Notify this object for each load / save operations
- // Returns: Boolean, true if succeeded.
- // p3: Tag[], R3FIRA_PreNotifyMethod, R3FIRA_NotifyMethod, R3FIRA_NotifyObject,
-
- R3FIRM_ADDNOTIFICATION = 98016;
-
- function mR3FIRM_ADDNOTIFICATION(p3) {
- return Do(this.r3obj, 98016, p3, R3TID_TAG, R3TNF_ARRAY);
- }
-
- // Description: Remove object from the notification list
- // Returns: Boolean, true if found.
- // p3: Tag[], R3FIRA_PreNotifyMethod, R3FIRA_NotifyMethod, R3FIRA_NotifyObject,
-
- R3FIRM_REMOVENOTIFICATION = 98017;
-
- function mR3FIRM_REMOVENOTIFICATION(p3) {
- return Do(this.r3obj, 98017, p3, R3TID_TAG, R3TNF_ARRAY);
- }
-
- // Description: Enumerate loader objects
- // p1: Object, callback object
- // p2: Integer, callback method
- // p3: Object, caller specific data
-
- R3FIRM_ENUMLOADERS = 98018;
-
- function mR3FIRM_ENUMLOADERS(p1, p2, p3) {
- DoA3(this.r3obj, 98018, p1, R3TID_OBJECT, 0, p2, R3TID_INTEGER, 0, p3, R3TID_OBJECT, 0);
- }
-
-
-
-
- R3FIRA_FileName = 98500;
- function SetR3FIRA_FileName(value) {
- R3Set(this.r3obj, R3FIRA_FileName, value, R3TID_STRING, 0);
- }
-
- function GetR3FIRA_FileName() {
- return R3Get(this.r3obj, R3FIRA_FileName, R3TID_STRING, 0);
- }
-
- R3FIRA_Sections = 98501;
- function SetR3FIRA_Sections(value) {
- R3Set(this.r3obj, R3FIRA_Sections, value, R3TID_INTEGER, 0);
- }
-
- var R3FIRA_Replace = 98502; // Boolean
- var R3FIRA_Format = 98503; // Integer
- R3FIRA_SectionNames = 98504;
- function GetR3FIRA_SectionNames() {
- return R3Get(this.r3obj, R3FIRA_SectionNames, R3TID_LIST, R3TNF_ARRAY);
- }
-
- R3FIRA_SaverNames = 98505;
- function GetR3FIRA_SaverNames() {
- return R3Get(this.r3obj, R3FIRA_SaverNames, R3TID_LIST, R3TNF_ARRAY);
- }
-
- var R3FIRA_WriteMth = 98507; // Integer
- var R3FIRA_ReadMth = 98508; // Integer
- var R3FIRA_ExportMth = 98509; // Integer
- var R3FIRA_ImportMth = 98510; // Integer
- var R3FIRA_Model = 98518; // Object
- R3FIRA_Selected = 98519;
- function SetR3FIRA_Selected(value) {
- R3Set(this.r3obj, R3FIRA_Selected, value, R3TID_INTEGER, 0);
- }
-
- function GetR3FIRA_Selected() {
- return R3Get(this.r3obj, R3FIRA_Selected, R3TID_INTEGER, 0);
- }
-
- R3FIRA_NotifyObject = 98521;
- function SetR3FIRA_NotifyObject(value) {
- R3Set(this.r3obj, R3FIRA_NotifyObject, value, R3TID_OBJECT, 0);
- }
-
- R3FIRA_NotifyMethod = 98522;
- function SetR3FIRA_NotifyMethod(value) {
- R3Set(this.r3obj, R3FIRA_NotifyMethod, value, R3TID_INTEGER, 0);
- }
-
- var R3FIRA_CollectExternalFiles = 98525; // Boolean
- R3FIRA_ProgressIndicator = 98528;
- function SetR3FIRA_ProgressIndicator(value) {
- R3Set(this.r3obj, R3FIRA_ProgressIndicator, value, R3TID_OBJECT, 0);
- }
-
- var R3FIRA_Notify = 98529; // Boolean
- R3FIRA_PreNotifyMethod = 98530;
- function SetR3FIRA_PreNotifyMethod(value) {
- R3Set(this.r3obj, R3FIRA_PreNotifyMethod, value, R3TID_INTEGER, 0);
- }
-
- var R3FIRA_FormatClid = 98531; // Integer
- var R3FIRA_SectionsDone = 98532; // Integer[]
- var R3FIRA_NoRecentFileEntry = 98533; // Boolean
- var R3FIRERR_CHECKSUM = 98500;
-
-
- function r3Filer () {
- this.base = r3God;
- if(arguments.length) {
- this.base(R3CLID_FILER, arguments);
- }
- // Methods
- this.SAVEAS=mR3FIRM_SAVEAS;
- this.SAVE=mR3FIRM_SAVE;
- this.LOAD=mR3FIRM_LOAD;
- this.REGISTERSAVER=mR3FIRCM_REGISTERSAVER;
- this.REGISTERLOADER=mR3FIRCM_REGISTERLOADER;
- this.FETCHSECTIONBIT=mR3FIRM_FETCHSECTIONBIT;
- this.REGISTEREXTERNALFILE=mR3FIRCM_REGISTEREXTERNALFILE;
- this.OPENFORMAT=mR3FIRM_OPENFORMAT;
- this.AUTOSAVE=mR3FIRM_AUTOSAVE;
- this.ISAUTOSAVENEWER=mR3FIRM_ISAUTOSAVENEWER;
- this.MAKEAUTOSAVENAME=mR3FIRM_MAKEAUTOSAVENAME;
- this.ADDNOTIFICATION=mR3FIRM_ADDNOTIFICATION;
- this.REMOVENOTIFICATION=mR3FIRM_REMOVENOTIFICATION;
- this.ENUMLOADERS=mR3FIRM_ENUMLOADERS;
-
- // Attributes
- this.GetFileName=GetR3FIRA_FileName;
- this.SetFileName=SetR3FIRA_FileName;
- this.SetSections=SetR3FIRA_Sections;
- this.GetSectionNames=GetR3FIRA_SectionNames;
- this.GetSaverNames=GetR3FIRA_SaverNames;
- this.GetSelected=GetR3FIRA_Selected;
- this.SetSelected=SetR3FIRA_Selected;
- this.SetNotifyObject=SetR3FIRA_NotifyObject;
- this.SetNotifyMethod=SetR3FIRA_NotifyMethod;
- this.SetProgressIndicator=SetR3FIRA_ProgressIndicator;
- this.SetPreNotifyMethod=SetR3FIRA_PreNotifyMethod;
- }
-
- r3Filer.prototype=new r3Root;
- // r3filer.h_H